<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
    <div class="modal-dialog " role="document" style="margin: 254px auto;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel">终端管理 — 修改</h4>
            </div>
            <div class="modal-body">
                <form name="editForm">

                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">终端编码:</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                            	   name="terminalCode" 
                            	   class="form-control" 
                                   autocomplete="off" 
                            	   required
                                   ng-model="edit_terminalCode"
                            	   >
                            <label class="red required">*</label>
                            <div class="error ng-hide" ng-show="editForm.terminalCode.$dirty &amp;&amp; editForm.terminalCode.$invalid">
                                <small class="error" ng-show="editForm.terminalCode.$error.required">名称不能为空</small>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">终端名称:</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="terminalName" 
                                   class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" 
                                   autocomplete="off" 
                                   required
                                   ng-model="edit_terminalName"
                                   >
                            <label class="red required">*</label>
                            <div class="error ng-hide" ng-show="editForm.terminalName.$dirty &amp;&amp; editForm.terminalName.$invalid">
                                <small class="error" ng-show="editForm.terminalName.$error.required">名称不能为空</small>
                            </div>
                        </div>
                    </div>

                    <div class="form-group height-auto">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能描述:</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea rows="5" 
                            		  type="text" 
                            		  name="description" 
                            		  class="form-control ng-pristine ng-valid ng-touched" 
                                      ng-model="edit_description"
                            		  >                                    
                            </textarea>
                            
                        </div>
                    </div>
                    
                </form>

                <div class="col-sm-12">
                    <div class="modal-footer">
                        <button type="button" 
                                class="btn btn-primary" 
                                data-dismiss="modal" 
                                ng-disabled="editForm.$invalid" 
                                ng-click="submitEdit()" 
                                >确定修改
                        </button>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>